package com.fj.clz;

/**
 * @author fj
 * @date 2023/12/25 16:46
 */
public class Animal {
    public static String TYPE = "动物";
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    {
        System.out.println("父类非静态代码块");
    }
    static {
        System.out.println("父类静态代码块");
    }

    public Animal(){
        System.out.println("父类构造方法");
    }

    public void bite(){
        System.out.println("bite "+TYPE);
    }
}
